package com.gejingyu.spring.di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestEmp {

    public static void main(String[] args) {
        ApplicationContext context
                = new ClassPathXmlApplicationContext("beanList.xml");
        Dept dept = (Dept) context.getBean("dept");
        dept.info();
    }
}
